package com.javahash.spring.classes;

public class User {
	
	private Integer id;
	private String name;
	
	public User(int id, String name)
	{
		this.name = name;
		this.id = id;
	}

	public User() {
		this.name="";
		this.id=0;
	}
	
	public int getId()
	{
		return id;
	}
	
	public String getName()
	{
		return name;
	}
	
	public boolean equals (User u)
	{
		if( this.id==u.getId() && this.name.equals(u.getName()))
			return true;
		else
			return false;
	}
}
